package com.lehoon.tomato.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户提现申请表
 * </p>
 *
 * @author wang
 * @since 2020-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SupplierWithdraw extends Model<SupplierWithdraw> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 提现金额
     */
    private BigDecimal money;

    private String bankName;

    private String bankNum;

    private String bankUser;

    private String bankSubName;

    /**
     * 提现状态：1）申请提现，2）提现成功，3）用户取消，4）拒绝，5）通过审核
     */
    private Integer state;

    private Integer supplierId;

    /**
     * 拒绝理由
     */
    private String reason;

    /**
     * 供应商用户id
     */
    private Integer aid;

    /**
     * 申请提现时间
     */
    private Integer withdrawTime;

    /**
     * 管理员审核时间
     */
    private Integer checkTime;

    private Integer checkUid;

    /**
     * 管理员打款时间
     */
    private Integer adminPayTime;

    private Integer adminUid;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
